package com.chinairi.mall.controller;


import com.chinairi.common.controller.BaseController;
import com.chinairi.mall.model.SupplierOrderProduceInformation;
import com.chinairi.mall.service.ISupplierOrderProduceInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *订单生产信息查询
 * </p>
 * @author 李昌赐
 * @since 2020-12-11
 */
@RestController
@RequestMapping("/supplier-order-produce-information")
public class SupplierOrderProduceInformationController extends BaseController {

    private static final long serialVersionUID = -508835107193041681L;

    @Autowired
    private ISupplierOrderProduceInformationService supplierOrderProduceInformationService;

    @GetMapping
    public Map<String,Object> listSupplierOrderProduceInformation(SupplierOrderProduceInformation supplierOrderProduceInformation){
        return supplierOrderProduceInformationService.listSupplierOrderProduceInformation(supplierOrderProduceInformation);
    }

    @GetMapping("listOutStorage")
    public List<Map<String,Object>> listOutStorage(SupplierOrderProduceInformation supplierOrderProduceInformation){
        return supplierOrderProduceInformationService.listOutStorage(supplierOrderProduceInformation);
    }

    @GetMapping("orderInformation")
    public Map<String, Object> getOrderInformation(String orderId, String matCode) {
        return supplierOrderProduceInformationService.getOrderInformation(orderId,matCode);
    }
}
